package cn.com.rexen.rplus.sa.model;

import java.util.Date;
import java.util.List;

/**
 * 用户对象vo.
 *
 * @author zhanghai
 */
public class UserVO extends BaseVO {


    /**
     * id.
     */
    private String id;

    /**
     * 用户名.
     */
    private String name;

    /**
     * 角色列表.
     */
    private List<RoleVO> role;


    /**
     * 密码.
     */
    private String password;

    /**
     * 应用id.
     */
    private String appid;


    /**
     * 真实姓名.
     */
    private String realname;

    /**
     * email .
     */
    private String email;
    /**
     * 年龄.
     */
    private Date birthday;
    /**
     * 性别.
     */
    private String sex;
    /**
     * 帐号是否锁定.
     */
    private boolean locked;
    /**
     * 联系方式.
     */
    private String contact;

    private String phone;
    
    
    private String orgid;
    
    private String org;
    
    


    /**
     * 返回orgid.
     * @return the orgid
     */
    public String getOrgid() {
        return orgid;
    }

    /**
     * 设置orgid.
     * @param orgid the orgid to set
     */
    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    /**
     * 返回org.
     * @return the org
     */
    public String getOrg() {
        return org;
    }

    /**
     * 设置org.
     * @param org the org to set
     */
    public void setOrg(String org) {
        this.org = org;
    }

    /**
     * @param id
     * @param name
     * @param role
     * @param appid
     * @param realname
     * @param password
     * @param email
     * @param sex
     * @param locked
     * @param contact
     */
    public UserVO(String id, String name, List<RoleVO> role, String appid,
                  String realname, String password, String email, Date birthday,
                  String sex, boolean locked, String contact) {
        super();
        this.id = id;
        this.name = name;
        this.role = role;
        this.appid = appid;
        this.realname = realname;
        this.password = password;
        this.email = email;
        this.birthday = birthday;
        this.sex = sex;
        this.locked = locked;
        this.contact = contact;
    }

    /**
     * @param id
     * @param name
     * @param role
     * @param appid
     */
    public UserVO(String id, String name, List<RoleVO> role, String appid) {
        super();
        this.id = id;
        this.name = name;
        this.role = role;
        this.appid = appid;
    }

    public UserVO() {
        super();
    }

    /**
     * @return the birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * @param birthday the birthday to set
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * @return the appid
     */
    public String getAppid() {
        return appid;
    }

    /**
     * @return the contact
     */
    public String getContact() {
        return contact;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @return the realname
     */
    public String getRealname() {
        return realname;
    }

    /**
     * @return the role
     */
    public List<RoleVO> getRole() {
        return role;
    }

    /**
     * @return the sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * @return the locked
     */
    public boolean isLocked() {
        return locked;
    }


    /**
     * set appid.
     *
     * @param appid the appid to set
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * @param contact the contact to set
     */
    public void setContact(String contact) {
        this.contact = contact;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * set id.
     *
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @param locked the locked to set
     */
    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    /**
     * set name.
     *
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @param realname the realname to set
     */
    public void setRealname(String realname) {
        this.realname = realname;
    }

    /**
     * @param role the role to set
     */
    public void setRole(List<RoleVO> role) {
        this.role = role;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
